"""定义learning_logs的URL模式"""

from django.conf.urls import url
from django.urls import include,path

from . import views

app_name = 'learning_logs'
urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^topics/$', views.topics,name='topics'),
    url(r'^topics/(?P<topic_id>\d+)/$', views.topic, name='topic'),
    url(r'^new_topic/$', views.new_topic, name='new_topic'),
    url(r'^new_entry/(?P<topic_id>\d+)/$', views.new_entry, name='new_entry'),
    url(r'^edit_entry/(?P<entry_id>\d+)/$', views.edit_entry, name='edit_entry'),
#    path('',views.index, name='index')
#    path('topics/',views.topics,name='topics'),
]
